package com.agent.payment.entity;

import com.agent.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

/**
 * 支付订单实体
 * @author Jeff_Wan
 * @description 存储用户支付订单信息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("payment_order")
public class PaymentOrder extends BaseEntity {
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 订单编号
     */
    private String orderNumber;
    /**
     * 支付金额
     */
    private BigDecimal amount;
    /**
     * 货币类型
     */
    private String currency;
    /**
     * 支付方式(ASIABILL/PAYPAL)
     */
    private String paymentMethod;
    /**
     * 支付状态(PENDING/SUCCESS/FAILED)
     */
    private String paymentStatus;
    /**
     * 交易ID
     */
    private String transactionId;
    /**
     * 套餐类型(BASIC/PRO/MAX)
     */
    private String planType;
    /**
     * 订阅类型(MONTHLY/YEARLY)
     */
    private String subscriptionType;
    /**
     * 原始套餐
     */
    private String originalPlan;
    /**
     * 积分抵扣金额
     */
    private BigDecimal creditConversion;
}